﻿/* 基础样式 */
* {
    box-sizing: border-box;
}
html {
    font-size: 62.5%; /* 1rem = 10px */
}
body {
    font-size: 1.6rem; /* 默认字体大小为16px */
    background: #eee;
    color: #4c4948;
    font-family: Lato, Arial, sans-serif;
    margin: 0;
    line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #344c67;
}
#body-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#nav {
    background-color: #49b1f5;
    padding: 1rem;
    text-align: center;
}
#site-title {
    font-size: 2rem; /* 20px */
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
#page {
    flex: 1;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 1rem;
    border-radius: 8px;
}
#aside_content {
    padding: 1rem;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 1rem;
    border-radius: 8px;
}
.skillbar {
    background: #eee;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.skillbar .skillbar-title {
    background: linear-gradient(to right, #FF0066, #FF00CC);
    color: #fff;
    padding: 0.5rem;
    font-size: 1.2rem;
}
.skillbar .skill-bar-percent {
    font-size: 1.2rem;
    color: #666;
    padding: 0.5rem;
}
footer {
    padding: 1rem;
    text-align: center;
    background: #49b1f5;
    color: #fff;
}

/* 响应式布局 */
@media (max-width: 768px) {
    html {
        font-size: 50%; /* 1rem = 8px */
    }
    #page, #aside_content {
        margin: 0.5rem;
        padding: 1rem;
    }
    #site-title {
        font-size: 1.5rem; /* 15px */
    }
    .skillbar .skillbar-title, .skillbar .skill-bar-percent {
        font-size: 1rem; /* 10px */
    }
}

@media (max-width: 480px) {
    html {
        font-size: 40%; /* 1rem = 6.4px */
    }
    #page, #aside_content {
        padding: 0.5rem;
    }
    #site-title {
        font-size: 1.2rem; /* 12px */
    }
    .skillbar .skillbar-title, .skillbar .skill-bar-percent {
        font-size: 0.8rem; /* 8px */
    }
}